package cn.mastor.org.service.impl;

import cn.mastor.basic.service.impl.BaseServiceImpl;
import cn.mastor.org.domain.Employee;
import cn.mastor.org.mapper.EmployyMapper;
import cn.mastor.org.service.IEmployyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class EmployyServiceImpl extends BaseServiceImpl<Employee> implements IEmployyService {
    @Autowired
    EmployyMapper employyMapper;
    @Override
    public List findByShopId(Long id) {
        return employyMapper.findByShopId(id);
    }
}
